package dto

import "trpg-common/utils/time_util"

type UserDTO struct {
	Uid       string `json:"uid"`
	Phone     string `json:"phone"`
	Username  string `json:"username"`
	AvatarUrl string `json:"avatar"`
	Session   string `json:"session"`
}

type ScriptsRequest struct {
	Search     string          `json:"search" form:"search"`
	LabelIds   []int64         `json:"labelIds" form:"labelIds"`
	Creator    bool            `json:"creator" form:"creator"`
	Collection bool            `json:"collection" form:"collection"`
	BeginTime  *time_util.Time `json:"beginTime" form:"beginTime"`
	EndTime    *time_util.Time `json:"endTime" form:"endTime"`
}

type RoomRequest struct {
	Search    string          `json:"search" form:"search"`
	LabelIds  []int64         `json:"labelIds" form:"labelIds"`
	Created   bool            `json:"created" form:"created"`
	Joined    bool            `json:"joined" form:"joined"`
	Managed   bool            `json:"managed" form:"managed"`
	BeginTime *time_util.Time `json:"beginTime" form:"beginTime"`
	EndTime   *time_util.Time `json:"endTime" form:"endTime"`
}

type ForumTopicRequest struct {
	Search    string          `json:"search" form:"search"`
	Created   bool            `json:"created" form:"created"`
	Collected bool            `json:"collected" form:"collected"`
	BeginTime *time_util.Time `json:"beginTime" form:"beginTime"`
	EndTime   *time_util.Time `json:"endTime" form:"endTime"`
	Order     string          `json:"order" form:"order"`
	OrderType string          `json:"orderType" form:"orderType"`
}

type ForumContentRequest struct {
	TopicId   int64           `json:"topicId" form:"topicId"`
	Search    string          `json:"search" form:"search"`
	BeginTime *time_util.Time `json:"beginTime" form:"beginTime"`
	EndTime   *time_util.Time `json:"endTime" form:"endTime"`
	Order     string          `json:"order" form:"order"`
	OrderType string          `json:"orderType" form:"orderType"`
}
